<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // - 编写一个函数，计算三个数字的大小，按从小到大顺序输出
        function fun () {
            var min = arguments[0]
            var max = arguments[0]
            for (var i = 0;i < arguments.length ;i++) {

                if (min > arguments[i]) {
                    var min1 = min
                    min = arguments[i]
                    console.log(min)
                    console.log(min1)
                }
            }

            // 最大
            for (var i = 0;i < arguments.length ;i++) {
                if (max < arguments[i]) {
                    max = arguments[i]
                    console.log(max)
                }
            }
        }
        fun(232,552,12);
    </script>
</body>
</html>